<script type="text/javascript" src="${base}/scripts/jsgl/cgjsd_content.js"></script>
<form id="form_cgjsd" action="${base}/jsgl/cgjsd/cgjsd" method="post" style="height: 100%">
    <input id="cgjsd_id" name="cgjsd.id" type="hidden" value="${(cgjsd.id)!''}"/>
    <input name="cgjsd.type" type="hidden" value="${(cgjsd.type)!''}"/>
    <input name="cgjsd.sqrq" type="hidden" value="${(cgjsd.sqrq)!''}"/>


    <div id="cgjsd_tabs" class="easyui-tabs" fit="true">
        <div title="结算单信息" style="height: 100%;overflow-y: auto">
            <table style="width:100%" class="tb tab-t">
                <col width="10%"/>
                <col width="35%"/>
                <col width="10%"/>
                <col width="35%"/>
                <div style="height: 20px;"/>
                <tr>
                <#--<th>带总部结算：</th>-->
                <#--<td>-->
                <#--<input type="checkbox" name="cgjsd.zbjs" id="cgjsd_zbjs" value="true"-->
                <#--<#if cgjsd?? && cgjsd.cggs?? && cgjsd.gs?? &&-->
                <#--cgjsd.cggs.id!=cgjsd.gs.id>checked</#if>/>-->
                <#--</td>-->
                    <th>结算单号：</th>
                    <td colspan="3"><input name="cgjsd.jsdh" class="input-text-border-zero" readonly="readonly"
                               style="width:655px;background-color:#F8F8FF;font-weight: bold" type="text"
                               value="${(cgjsd.jsdh)!}"/>
                    </td>
                    <#--<th>采购公司：</th>-->
                    <#--<td>-->
                        <#--<input id="cgjsd_cggs" name="cgjsd.cggs.id" style="width:272px;" type="text"-->
                               <#--value="${(cgjsd.cggs.id)!(gsId)}"-->
                               <#--class="easyui-combotree input-text"/>-->
                    <#--</td>-->
                </tr>
                <tr>
                    <th>申&nbsp;&nbsp;请&nbsp;人：</th>
                    <td>
                        <input id="cgjsd_sqr" name="cgjsd.sqr.id" type="text" style="width:290px;"
                               value="${(cgjsd.sqr.id)!(sqrId)}"
                               class="easyui-combobox input-text"
                               data-options="url:'${base}/sys/yg/ygSearchFromId?ygId=${(cgjsd.sqr.id)!(sqrId)}',valueField:'id',textField:'xm',panelHeight:'50',editable:'false'"
                                />
                    </td>
                    <th>申报公司：</th>
               <#--     <td>
                        <input type="hidden" id="cgjsd_content_gs_id" value="${(cgjsd.gs.id)!}"/>
                        <input type="hidden" id="cgjsd_content_gs_jc" value="${(cgjsd.gs.qc)!}"/>
                        <input id="cgjsd_gs" name="cgjsd.gs.id" type="text" style="width:272px;"
                               value="${(cgjsd.gs.id)!''}"
                               class="input-text" required="true"/>
                    </td>-->
                    <td>
                        <input id="cgjsd_sbgs_id"  type="hidden" name="cgjsd.gs.id" class=" input-text" value="${(cgjsd.gs.id)!}"
                                >
                        <input type="text"  class=" input-text" value="${(cgjsd.gs.qc)!} " readonly="readonly"
                               style="width:270px;"      >
                    </td>

                </tr>
                <tr>
                    <th>供&nbsp;&nbsp;应&nbsp;商：</th>
                    <td>
                        <input type="hidden" id="cgjsd_content_gys_id" value="${(cgjsd.glqy.id)!}"/>
                        <input type="hidden" id="cgjsd_content_gys_jc" value="${(cgjsd.glqy.qc)!}"/>
                        <input id="cgjsd_glqy" name="cgjsd.glqy.id" type="text" style="width:288px;"
                               value="${(cgjsd.glqy.id)!''}" class="input-text" required="true"/>
                    <#--<input id="cgjsd_glqy" name="cgjsd.glqy.id" type="text" style="width:290px;"-->
                    <#--class="easyui-combobox input-text" value="${(cgjsd.glqy.id)!''}"-->
                    <#--data-options="url:'${base}/cggl/cgdgl/cgdGysList?cggsId=${(cgjsd.cggs.id)!(gsId)}&sbgsId=${(cgjsd.sbgs.id)!(gsId)}',valueField:'id',textField:'jc',panelHeight:'200',editable:'true'">-->
                    </td>
                    <th>纳&nbsp;税&nbsp;&nbsp;号：</th>
                    <td><input id="cgjsd_glqy_qyfr_nsh" name="cgjsd.glqy.qyfr.nsh" readonly="readonly"
                               style="width:270px;" class="input-text" type="text"
                               value="${(cgjsd.glqy.qyfr.nsh)!''}"/></td>
                </tr>
                <tr>
                    <th>发票种类：</th>
                    <td>
                        <label><input name="cgjsd.fpzl" type="radio" value="0" checked="checked"
                                      style="vertical-align: middle;"/>&nbsp;增&nbsp;&nbsp;票</label>
                        <label><input name="cgjsd.fpzl" type="radio" value="1"
                                      <#if (cgjsd.fpzl)?? && cgjsd.fpzl==1>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;普&nbsp;&nbsp;票 </label>
                        <label><input name="cgjsd.fpzl" type="radio" value="2"
                                      <#if (cgjsd.fpzl)?? && cgjsd.fpzl==2>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;其&nbsp;&nbsp;他</label>
                        <label><input name="cgjsd.fpzl" type="radio" value="3"
                                      <#if (cgjsd.fpzl)?? && cgjsd.fpzl==3>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;另&nbsp;开&nbsp;票 </label>
                    </td>
                    <th>发票张数：</th>
                    <td>
                        <input name="cgjsd.fpzs" class="easyui-numberbox input-text"
                               style="width:270px;" type="text" value="${(cgjsd.fpzs)!''}"/>
                    </td>
                </tr>
                <tr>
                    <th style="color:#f45212;">发票号码：</th>
                    <td>
                        <input id="cgjsd_hm" name="cgjsd.hm" class="input-text"
                               style="width:290px;" type="text" value="${(cgjsd.hm)!''}" required="required"/>
                    </td>
                    <th>发票总额：</th>
                    <td>
                        <input id="cgjsd_fpze" name="cgjsd.fpze" readonly="readonly" class="input-text"
                               style="width:270px;background-color:#F8F8FF;"
                               data-options="min: 0, groupSeparator: ',',precision: 4"
                               type="text" value="${(cgjsd.fpze?string("0.00"))!''}"/>
                    </td>
                </tr>
                <tr>
                    <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                    <td colspan="3">
                        <textarea style="width:87%;height: 101px" rows="2" class="textarea"
                                  name="cgjsd.bz">${(cgjsd.bz)!}</textarea>
                    </td>
                </tr>
            </table>
        </div>

        <div title="结算单明细">
            <table style="width:100%;" class="tb tab-t">
                <tr>
                    <td colspan="8">
                        <div id="cgd_tool" style="height:auto;">
                            <ul class="niu">
                                <li><a href="javascript:void(0)" id="btn_cgjsd_cgd_search" plain="true">选择送货单</a></li>
                                <li><a href="javascript:void(0)" id="btn_cgjsd_cgd_del" class="del"
                                       plain="true">删除送货单</a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
                <table id="grid_cgjsdmx"></table>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <div style="width: 1000px;">
                    <tr>
                        <th>代垫运费(元)：</th>
                        <td>
                            <input id="cgjsd_ddfy" name="cgjsd.ddfy" class="input-text-border-zero"
                                   style="width:120px;"
                                   type="text" value="${(cgjsd.ddfy?string("0.00"))!}"/>
                        </td>
                        <th>净额(元)：</th>
                        <td>
                            <input id="cgjsd_je" name="cgjsd.je" class="input-text-border-zero" readonly="readOnly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;" type="text"
                                   value="${(cgjsd.je?string("0.00"))!}"/>
                        </td>
                        <th>税额(元)：</th>
                        <td>
                            <input id="cgjsd_se" name="cgjsd.se" class="input-text-border-zero" readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   type="text" value="${(cgjsd.se?string("0.00"))!}"/>
                        </td>
                        <th>面额(元)：</th>
                        <td>
                            <input id="cgjsd_me" name="cgjsd.me" class="input-text-border-zero" type="text"
                                   readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   value="${(cgjsd.me?string("0.00"))!}"/>
                        </td>
                        <th>差额(元)：</th>
                        <td>
                            <input id="cgjsd_ce" name="cgjsd.ce" class="input-text-border-zero" type="text"
                                   readonly="readonly"
                                   style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;"
                                   value="${(cgjsd.ce?string("0.00"))!}"/>
                        </td>
                    </tr>
                </div>
            </table>
        </div>


     <#--  <div title="资金补差单">
            <table id="grid_zjbcd"></table>
        </div>-->
    </div>
<#--<div style="display: none"><input id="sbbm_id" type="hidden" value=""/></div>-->
</form>

